package com.css.zfzx.fxpg.modules.vulnerability.danger.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.preestimate.workspace.viewobjects.FxPreestimateWorkspaceQueryParams;
import com.css.zfzx.fxpg.modules.vulnerability.danger.repository.entity.FxVulnerabilityDangerEntity;
import com.css.zfzx.fxpg.modules.vulnerability.danger.viewobjects.FxVulnerabilityDangerQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author andy
 * @date 2020-12-10
 */

public interface FxVulnerabilityDangerService {

    public JSONObject queryFxVulnerabilityDangers(FxVulnerabilityDangerQueryParams queryParams, int curPage, int pageSize);

    public FxVulnerabilityDangerEntity getFxVulnerabilityDanger(String id);

    public FxVulnerabilityDangerEntity saveFxVulnerabilityDanger(FxVulnerabilityDangerEntity fxVulnerabilityDanger);

    public FxVulnerabilityDangerEntity updateFxVulnerabilityDanger(FxVulnerabilityDangerEntity fxVulnerabilityDanger);

    public void deleteFxVulnerabilityDangers(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    public List<FxVulnerabilityDangerEntity> getFxVulnerabilityDangers(FxVulnerabilityDangerQueryParams queryParams);

    String importExcel(MultipartFile file);
    String exportExcel(FxVulnerabilityDangerQueryParams queryParams, HttpServletResponse response);

}
